package cn.cena.org.domian;

import cn.cena.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Shop extends BaseDomain {
    private String name;
    private String tel;
    private Date registerTime = new Date();
    private int state;
    private String address;
    private String logo;
    private Employee admin;

    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date getRegisterTime() {
        return registerTime;
    }
}
